package nuist.hanniko.stu.webbackend.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import nuist.hanniko.stu.webbackend.model.LwM2m.LwM2MResourceValue;

import java.util.Date;
import java.util.List;

public interface DeviceRecordService {

    JSONArray getResourceRecord(String deviceId, String objectId, String resourceId);

    JSONArray getObjectRecord(String deviceId, String objectId);

    JSONArray getDeviceRecord(String deviceId);

    int addRecord(LwM2MResourceValue value);

    int addRecord(List<LwM2MResourceValue> valueList);

    int SUCCESS = 1;

    int FAILURE = 0;
}
